#ifndef LOGGER_H
#define LOGGER_H

#include <string>
#include <vector>
#include "..\include\file\outfile.h"

class Logger
{
  public:
	enum EntryType {
		ERROR, INFO
	};

	static Logger* Instance();
	void addEntry(EntryType, std::string);

  protected:
	Logger();
	Logger(const Logger&);
	~Logger();
	Logger& operator=(const Logger&);

  private:
	OutFile logFile_;
	std::string filePath_;

	std::string formatErrorEntry(std::string);
	std::string formatInfoEntry(std::string);
	std::string getTimeAndDate();
	void writeToFile(std::string text);

};

#endif // LOGGER_H
